
public class Global {
	
	public static String ip = "127.0.0.1";
	public static int port = 20000;
	
	public static int numMachines = 4;
	public static int k = 2; // number of machines each is checking up on
	public static int size = 100; //queue size
	public static int T = 5000; //ms
	public static int roundTrip = 300; //ms
	
	public static int simLength = 201*1000; //ms
	
	public static int numMessages = 0;
	public static int numFailures = 0;
	
	public static synchronized void update() {
		numMessages++;
	}
	
	public static synchronized void addFailure() {
		numFailures++;
	}
	
	public static synchronized int getPort() {
		return port++;
	}

	//messages that can be received:
	// 1. ping from machine(s)
	
	//messages that can be sent
	// 1. pring to machines
	
	//assign
	
}
